home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / gadgets / rcs / listview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.9 KB  |  123 lines

  1. head    1.2;
  2. access;
  3. symbols;
  4. locks
  5.     dlorre:1.2; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.2
  10. date    97.07.14.04.27.08;    author dlorre;    state Exp;
  11. branches;
  12. next    1.1;
  13.  
  14. 1.1
  15. date    96.08.22.02.06.07;    author dlorre;    state Exp;
  16. branches;
  17. next    ;
  18.  
  19.  
  20. desc
  21. @Oui.lib -- Object User Interface
  22. Projet créé en 1994
  23. Auteur: Dominique Lorre
  24. @
  25.  
  26.  
  27. 1.2
  28. log
  29. @*** empty log message ***
  30. @
  31. text
  32. @// $Id$
  33. #ifndef CLASS_LISTVIEW_H
  34. #define CLASS_LISTVIEW_H
  35.  
  36. #ifndef EXEC_TYPES_H
  37. #include <exec/types.h>
  38. #endif
  39.  
  40. #ifndef EXEC_NODES_H
  41. struct Node ;
  42. #endif
  43.  
  44. #ifndef EXEC_LISTS_H
  45. struct List ;
  46. #endif
  47.  
  48. #ifndef INTUITION_INTUITION_H
  49. struct Gadget ;
  50. struct Window ;
  51. struct Image ;
  52. #endif
  53.  
  54. #ifndef CLASS_WINDOW_H
  55. class window ;
  56. #endif
  57.  
  58. #ifndef CLASS_GADGETLIST_H
  59. class gadgetlist ;
  60. #endif
  61.  
  62. #ifndef CLASS_GADGET_H
  63. #include "gadgets/gadget.h"
  64. #endif
  65.  
  66. #ifndef CLASS_SLIST_H
  67. class nlist ;
  68. class nlink ;
  69. #endif
  70.  
  71. // ========================================================================
  72. // ==========================  LISTVIEW CLASS =============================
  73. // ========================================================================
  74.  
  75. class listview : public gadget
  76. {
  77.     nlink *sl ;
  78.     List *l ;
  79.     Node *n ;
  80.     Node *c ;
  81.     int created ;
  82. public:
  83.     int count ;
  84.     int cursel ;
  85.     int curtop ;
  86.     listview(gadgetlist *gl,
  87.          void (window::*func)(gadget *, unsigned long, unsigned short),
  88.          const char* title,
  89.          unsigned long place,
  90.          nlist *liste,
  91.          unsigned short top=0,
  92.          unsigned short sel=~0,
  93.          short readonly=FALSE,
  94.          unsigned short swidth=16,
  95.          Gadget *showsel=NULL) ;
  96.  
  97.     ~listview() ;
  98.     void set(unsigned short top, unsigned short sel=~0) ;
  99.     void reset(nlist *liste, unsigned short top=0, unsigned short sel=~0) ;
  100.     void keystroke(BOOL shifted) ;
  101.     void action(unsigned long classe, unsigned short code) ;
  102. };
  103.  
  104. #endif
  105. @
  106.  
  107.  
  108. 1.1
  109. log
  110. @Initial revision
  111. @
  112. text
  113. @d1 1
  114. d51 2
  115. a54 3
  116.     int count ;
  117.  
  118. public:
  119. d57 1
  120. a57 1
  121.          STRPTR title,
  122. @
  123.